<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            *{
                margin: 0px;
                padding: 0px;
                list-style: none;

            }
            ul{
                float:left;
            }
            ul li{
                width: 100px;
                height: 30px;
                margin-top: 10px;
                margin-left: 10px;
            }
            ul li:nth-of-type(1){
                background:#c08c02;
            }
            section>div{
                width: 500px;
                height: 200px;
                text-align: center;
                display: none;
                float:left;
                margin-top:30px;
                line-height: 50px;
            }
            section>div:nth-of-type(1){
                display: block;
            }
            a{
                text-decoration:none; 
            }
        </style>
    </head>
    <body>
        <ul>
            <li>热门问题</li>
            <li>举报人工服务</li>
            <li>充值/购买</li>
            <li>登录</li>
            <li>联系客服</li>
        </ul>
        <section>
            <div><a href="">游戏BUG反馈</a><br>
            <a href="">进入游戏无法连接到服务器？</a><br>
            <a href="">游戏被封号了怎么办？</a><br>
            <a href="">游戏更新失败怎么办？</a><br>
            <a href="">下载游戏失败，怎么办？</a><br>
            <a href="">更新游戏失败，怎么办？</a>
            </div>
            <div><a href="">送人头挂机辱骂举报反馈</a><br>
            <a href="">消极态度举报反馈</a>
            </div>
            <div>
                <a href="">登录充值</a><br>
                <a href="">物品买错大区/点券充错大区</a><br>
                <a href="">充值未到账</a>
                </div>
            <div>
                <a href="">登录/掉线/崩溃/报错点击这里</a><br>
                <a href="">登录异常请点这里</a><br>
                <a href="">客户端&游戏过程异常请点这里</a><br>
                <a href="">游戏客户端内东西无法正常使用怎么办？</a>
            </div>
            <div>
                <a href="">客服服务专区</a><br>
                <a href="">违规处罚</a><br>
                <a href="">家长监护工程</a>
            </div>
        </section>
        <script>
            var tags=document.getElementsByTagName('li');
            var boxs=document.getElementsByTagName('div');
            for(var i=0;i<tags.length;i++){
                tags[i].index=i;
                tags[i].onclick=function(){
                    for(var j=0;j<tags.length;j++){
                        tags[j].style.background="none";
                        boxs[j].style.display="none"
                    }
                    this.style.background='#c08c02';
                    var n=this.index;
                    boxs[n].style.display='block'
                }
            }
        </script>
    </body>
</html>